home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / shell / dialog-0.000 / dialog-0 / dialog-0.6c / samples / msgbox < prev    next >
Encoding:
Text File  |  1995-08-07  |  349 b   |  15 lines

  1. #!/bin/sh
  2. DIALOG=${DIALOG=../dialog}
  3.  
  4. $DIALOG --title "MESSAGE BOX" --clear \
  5.         --msgbox "Hi, this is a simple message box. You can use this to \
  6.                   display any message you like. The box will remain until \
  7.                   you press the ENTER key." 10 41
  8.  
  9. case $? in
  10.   0)
  11.     echo "OK";;
  12.   255)
  13.     echo "ESC pressed.";;
  14. esac
  15.